package com.test.ml.mybatis.enums;

public enum UserStatus {


    ON(1,"启用"),OFF(2,"停用");

    private int value;
    private String msg;

    UserStatus(int value,String msg){
        this.value=value;
        this.msg=msg;
    }

    public static UserStatus getStatusByvalue(int value){
        for(UserStatus v:UserStatus.values()){
            if(v.value==value){
                return v;
            }
        }
        return null;
    }

    public int getValue() {
        return value;
    }



    public String getMsg() {
        return msg;
    }

}
